package org.example.simple_factory;


import org.example.simple_factory.SimpleFactory.Product;

/**
 * @author lyq
 * @description 简单工厂模式
 * @since 2025-03-11 12:56
 */

public class SimpleFactoryPatternDemo {

  public static void main(String[] args) {
    SimpleFactory simpleFactory = new SimpleFactory();
    Product a = simpleFactory.createProduct("A");
    a.operation();
  }


}
